package com.ajview.common.core.exception.auth;

import org.springframework.security.core.AuthenticationException;

/**
 * @author ZhangJunJie
 * @Date 2022-09-29
 * <p>
 * 概要：认证全局自定义异常
 */
public class AuthGlobalException extends AuthenticationException {

    private static final long serialVersionUID = 15685831050546878L;
    /**
     * 错误提示
     */
    private String message;

    public AuthGlobalException(String msg, String message) {
        super(msg);
        this.message = message;
    }

    public AuthGlobalException(String msg) {
        super(msg);
        this.message = msg;
    }


    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
